package com.own.business.system.user.entity.query;

import com.own.component.common.base.entity.BaseQuery;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * SystemUserQuery
 *
 * @author chenxueli
 * @date 2021/06/24 15:46:54
 */
@Schema(title = "系统用户" + ConstantBeanSuffix.QUERY)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class SystemUserQuery extends BaseQuery {

    @Schema(title = "是否禁用 1=禁用 0=可用")
    private Integer isDisable;

    @Schema(title = "账号状态 1=正常 2=审核 3=冻结")
    private Integer state;

    @Schema(title = "账号来源 0=未知 1=系统用户添加 2=个人注册")
    private Integer fromType;

    @Schema(title = "客户端id 为空标识都可以登录（多个用,分隔）")
    private String clientId;

    @Schema(title = "最后一次登录时间")
    private LocalDateTime lastLogin;

    @Schema(title = "用户类型 1=普通用户 2=管理员")
    private Integer type;

}
